using System.Text;
using System;
using System.Collections.Generic;
using AmazeUI;
using AmazeUI.Imodel;
namespace AmazeUI.db
{
    public partial class ArticleComment
    {
        public ArticleComment() { }
        public ArticleComment(IArticleComment model)
            : this()
        {
            this.ParentId = 0;
            this.Score = 3;
            
            SetModel(model);
            this.UpTime = DateTime.Now;
        }
        public void SetModel(IArticleComment model)
        {
            this.Id = model.Id;
            this.XtUserId = model.XtUserId;
            this.Comment = model.Comment;

            this.ArticleId = model.ArticleId;
            this.Score = model.Score;
            this.ParentId = model.ParentId;


        }

    }
}
